package club.laowang.chain;

import club.laowang.chain.annotation.Length;
import club.laowang.chain.annotation.Max;
import club.laowang.chain.annotation.Min;

public class User {
    @Length(3)
    private String name;

    @Max(1)
    @Min(10)
    private Integer age;

    public User(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }
}
